home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / FifoScheduler.h,v < prev    next >
Text File  |  1989-02-23  |  1KB  |  97 lines

  1. head     3.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    grunwald:3.2; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 3.2
  10. date     89.02.20.15.34.35;  author grunwald;  state Exp;
  11. branches ;
  12. next     3.1;
  13.  
  14. 3.1
  15. date     88.12.20.13.49.46;  author grunwald;  state Exp;
  16. branches ;
  17. next     1.2;
  18.  
  19. 1.2
  20. date     88.10.30.13.05.42;  author grunwald;  state Exp;
  21. branches ;
  22. next     1.1;
  23.  
  24. 1.1
  25. date     88.09.18.16.42.04;  author grunwald;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29.  
  30. desc
  31. @@
  32.  
  33.  
  34. 3.2
  35. log
  36. @Start using Gnu library heaps for schedulers
  37. @
  38. text
  39. @// This may look like C code, but it is really -*- C++ -*-
  40. // 
  41. // Copyright (C) 1988 University of Illinois, Urbana, Illinois
  42. //
  43. // written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
  44. //
  45. #ifndef FIFOSCHEDULERH
  46. #define FIFOSCHEDULERH
  47.  
  48. #include "ThreadContainer.h"
  49. #include "AwesimeFifo.h"
  50.  
  51. class Thread;
  52.  
  53. class FifoScheduler : public ThreadContainer {
  54.     AwesimeFifo fifo;
  55.  
  56. public:
  57.  
  58.     FifoScheduler(int defaultLength = 0, bool xdebug = 0);
  59.  
  60.     virtual void add(Thread *t);
  61.     virtual void add(double when, Thread *t);
  62.     virtual Thread* remove();
  63.     virtual Thread* remove(Thread*);
  64.  
  65.     virtual bool isEmpty();
  66.     virtual unsigned size();
  67.     virtual void classPrintOn(ostream& s);
  68. };
  69.              
  70. #endif FIFOSCHEDULERH
  71. @
  72.  
  73.  
  74. 3.1
  75. log
  76. @Steay version
  77. @
  78. text
  79. @@
  80.  
  81.  
  82. 1.2
  83. log
  84. @*** empty log message ***
  85. @
  86. text
  87. @@
  88.  
  89.  
  90. 1.1
  91. log
  92. @Initial revision
  93. @
  94. text
  95. @d1 6
  96. @
  97.